recursion tree method for solving recurrences